package com.centriole.service.workflow.entity.shiro;

import java.io.Serializable;

/**
 * 角色和权限的中间表实体
 * 添加角色对应的权限自己维护表
 * @author Administrator
 */
@SuppressWarnings("serial")
public final class RolePermission implements Serializable{

	private Long id;
	private Long roleId;
	private Long permissionId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(Long permissionId) {
		this.permissionId = permissionId;
	}

	@Override
	public String toString() {
		return "RolePermission [roleId=" + roleId + ", permissionId=" + permissionId + "]";
	}

	public RolePermission(Long roleId, Long permissionId) {
		super();
		this.roleId = roleId;
		this.permissionId = permissionId;
	}

	public RolePermission() {
		super();
	}

}
